package com.nuoniu.sibanyun.service.crm.call;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.nuoniu.sibanyun.entity.crm.call.CrmCallVoice;
import com.nuoniu.sibanyun.entity.crm.call.dto.CrmCallVoiceSearchDto;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 客户管理-外呼管理-语音 服务类
 * </p>
 *
 * @author 白强
 * @since 2022-02-28
 */
public interface ICrmCallVoiceService extends IService<CrmCallVoice> {
    /**
     * 分页查询
     * @param crmCallVoiceSearchDto
     * @return
     */
    Page<CrmCallVoice> pageList(CrmCallVoiceSearchDto crmCallVoiceSearchDto);

    /**
     * 通过名称查询
     * @param name
     * @return
     */
    boolean getByName(String name,Long oldId);
    /**
     * 保存 语音
     * @param crmCallVoice
     */
    void saveVoice(CrmCallVoice crmCallVoice);

    /**
     * 上传 语音文件
     * @param file
     */
    List<CrmCallVoice> uploadVoice(MultipartFile[] file);

    /**
     * 删除 语音
     * @param id
     */
    void delete(Long id);

}
